import 'package:equatable/equatable.dart';
import 'package:backend.purchases/domain/entities/google_play_api/google_play_api_transaction_revocation_reason.dart';
import 'package:backend.purchases/domain/entities/google_play_api/google_play_api_transaction_revocation_source.dart';

class GooglePlayApiRevokedPurchasedItem extends Equatable {
  const GooglePlayApiRevokedPurchasedItem({
    required this.purchaseToken,
    required this.orderId,
    required this.revocationSource,
    required this.revocationReason,
    required this.revocationTime,
  });

  final String purchaseToken;
  final String orderId;
  final GooglePlayApiTransactionRevocationSource revocationSource;
  final GooglePlayApiTransactionRevocationReason revocationReason;
  final DateTime revocationTime;

  @override
  List<Object?> get props {
    return [
      purchaseToken,
      orderId,
      revocationSource,
      revocationReason,
      revocationTime,
    ];
  }
}
